<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>eCommerce: Dokumentacja klasy ShopDAO.PictureDAO</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Wygenerowano przez Doxygen 1.6.1 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Szukaj');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Strona&nbsp;główna</span></a></li>
      <li><a href="namespaces.html"><span>Pakiety</span></a></li>
      <li class="current"><a href="annotated.html"><span>Klasy</span></a></li>
      <li><a href="files.html"><span>Pliki</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <img id="MSearchSelect" src="search/search.png"
             onmouseover="return searchBox.OnSearchSelectShow()"
             onmouseout="return searchBox.OnSearchSelectHide()"
             alt=""/>
        <input type="text" id="MSearchField" value="Szukaj" accesskey="S"
             onfocus="searchBox.OnSearchFieldFocus(true)" 
             onblur="searchBox.OnSearchFieldFocus(false)" 
             onkeyup="searchBox.OnSearchFieldChange(event)"/>
        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Lista&nbsp;klas</span></a></li>
      <li><a href="hierarchy.html"><span>Hierarchia&nbsp;klas</span></a></li>
      <li><a href="functions.html"><span>Składowe&nbsp;klas</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespace_shop_d_a_o.html">ShopDAO</a>.<a class="el" href="class_shop_d_a_o_1_1_picture_d_a_o.html">PictureDAO</a>
  </div>
</div>
<div class="contents">
<h1>Dokumentacja klasy ShopDAO.PictureDAO</h1><!-- doxytag: class="ShopDAO::PictureDAO" -->
<p><a href="class_shop_d_a_o_1_1_picture_d_a_o-members.html">Lista wszystkich składowych.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Metody publiczne</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shop_d_a_o_1_1_picture_d_a_o.html#a52d0e4c046967c0b18da71de977fae4d">PictureDAO</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shop_d_a_o_1_1_picture_d_a_o.html#a22a9a606d923946938c6f67409228f01">DeletePicturesFromDataBase</a> (int productID)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Usuwa pliki zdjęć (Removes picture files from the database).  <a href="#a22a9a606d923946938c6f67409228f01"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shop_d_a_o_1_1_picture_d_a_o.html#adc853cb174485307355afd09335f6587">SavePicture</a> (<a class="el" href="class_shop_model_1_1_picture_info.html">ShopModel.PictureInfo</a> picture)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Zapisuje plik zdjęcia w bazie danych (Saves photo file in the database.).  <a href="#adc853cb174485307355afd09335f6587"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">List&lt; <a class="el" href="class_shop_model_1_1_picture_info.html">PictureInfo</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shop_d_a_o_1_1_picture_d_a_o.html#aa62a025fa88f0dde00813566f8cc44e2">GetPictures</a> (int productId)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Pobiera inforacje o zdjęciach dla produktu o podanym id (Gets information about the pictures for the product about the given id.).  <a href="#aa62a025fa88f0dde00813566f8cc44e2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shop_d_a_o_1_1_picture_d_a_o.html#ad2c8a5f352f5d40d4ec146d8dc46cfcf">RemovePicture</a> (int pictureId)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Usuwa zdjęci o podanym id (Removes photos for the product with given id.).  <a href="#ad2c8a5f352f5d40d4ec146d8dc46cfcf"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shop_d_a_o_1_1_picture_d_a_o.html#ae8948893e10cddafd21f83155665fb43">SetAsMainPicture</a> (int pictureId)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Ustaw zdjęcie o podanym id jako główne (Sets as main photo, picture with given id.).  <a href="#ae8948893e10cddafd21f83155665fb43"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_shop_model_1_1_picture_info.html">PictureInfo</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shop_d_a_o_1_1_picture_d_a_o.html#af0eb063e9fc93715df647df3e32020b1">GetPicture</a> (int pictureId)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Pobiera informacje dla zdjęcia o podanym id(Downloads information about photos with given id.).  <a href="#af0eb063e9fc93715df647df3e32020b1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_shop_model_1_1_picture_info.html">PictureInfo</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shop_d_a_o_1_1_picture_d_a_o.html#af4c203a17c9051399a6d5ad51b65c8f5">MainPictureForProduct</a> (int productId)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Pobiera głowne djęcie dla produktu o podanym id (Gets main photo for the chosen product.).  <a href="#af4c203a17c9051399a6d5ad51b65c8f5"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Opis szczegółowy</h2>

<p>Definicja w linii <a class="el" href="_picture_d_a_o_8cs_source.html#l00012">12</a> pliku <a class="el" href="_picture_d_a_o_8cs_source.html">PictureDAO.cs</a>.</p>
<hr/><h2>Dokumentacja konstruktora i destruktora</h2>
<a class="anchor" id="a52d0e4c046967c0b18da71de977fae4d"></a><!-- doxytag: member="ShopDAO::PictureDAO::PictureDAO" ref="a52d0e4c046967c0b18da71de977fae4d" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ShopDAO.PictureDAO.PictureDAO </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definicja w linii <a class="el" href="_picture_d_a_o_8cs_source.html#l00016">16</a> pliku <a class="el" href="_picture_d_a_o_8cs_source.html">PictureDAO.cs</a>.</p>

</div>
</div>
<hr/><h2>Dokumentacja funkcji składowych</h2>
<a class="anchor" id="a22a9a606d923946938c6f67409228f01"></a><!-- doxytag: member="ShopDAO::PictureDAO::DeletePicturesFromDataBase" ref="a22a9a606d923946938c6f67409228f01" args="(int productID)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ShopDAO.PictureDAO.DeletePicturesFromDataBase </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>productID</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Usuwa pliki zdjęć (Removes picture files from the database). </p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>productID</em>&nbsp;</td><td>Id produktu, dla którego usuwamy zdjęcia (Product id for which we remove picture.)</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Zwraca:</b></dt><dd>Zwraca 'true', jeśli operacja usuwania zakończona powodzeniem (Returns True jesli when removal succeeded.)</dd></dl>

<p>Definicja w linii <a class="el" href="_picture_d_a_o_8cs_source.html#l00026">26</a> pliku <a class="el" href="_picture_d_a_o_8cs_source.html">PictureDAO.cs</a>.</p>

</div>
</div>
<a class="anchor" id="af0eb063e9fc93715df647df3e32020b1"></a><!-- doxytag: member="ShopDAO::PictureDAO::GetPicture" ref="af0eb063e9fc93715df647df3e32020b1" args="(int pictureId)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_shop_model_1_1_picture_info.html">PictureInfo</a> ShopDAO.PictureDAO.GetPicture </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>pictureId</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Pobiera informacje dla zdjęcia o podanym id(Downloads information about photos with given id.). </p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pictureId</em>&nbsp;</td><td>Id zdjęcia które pobrać (Photo id to be downloaded.)</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Zwraca:</b></dt><dd>True jeśli operacja zakończona sukcesem (True is operation succedemd.)</dd></dl>

<p>Definicja w linii <a class="el" href="_picture_d_a_o_8cs_source.html#l00214">214</a> pliku <a class="el" href="_picture_d_a_o_8cs_source.html">PictureDAO.cs</a>.</p>

</div>
</div>
<a class="anchor" id="aa62a025fa88f0dde00813566f8cc44e2"></a><!-- doxytag: member="ShopDAO::PictureDAO::GetPictures" ref="aa62a025fa88f0dde00813566f8cc44e2" args="(int productId)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">List&lt;<a class="el" href="class_shop_model_1_1_picture_info.html">PictureInfo</a>&gt; ShopDAO.PictureDAO.GetPictures </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>productId</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Pobiera inforacje o zdjęciach dla produktu o podanym id (Gets information about the pictures for the product about the given id.). </p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>productId</em>&nbsp;</td><td>Id Produktu (Product id.)</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Zwraca:</b></dt><dd>Lista objektów typu PictureInfo (PictureInfo object's list.)</dd></dl>

<p>Definicja w linii <a class="el" href="_picture_d_a_o_8cs_source.html#l00097">97</a> pliku <a class="el" href="_picture_d_a_o_8cs_source.html">PictureDAO.cs</a>.</p>

</div>
</div>
<a class="anchor" id="af4c203a17c9051399a6d5ad51b65c8f5"></a><!-- doxytag: member="ShopDAO::PictureDAO::MainPictureForProduct" ref="af4c203a17c9051399a6d5ad51b65c8f5" args="(int productId)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_shop_model_1_1_picture_info.html">PictureInfo</a> ShopDAO.PictureDAO.MainPictureForProduct </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>productId</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Pobiera głowne djęcie dla produktu o podanym id (Gets main photo for the chosen product.). </p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>productId</em>&nbsp;</td><td>Id produktu dla którego pobrać główne zdjęcie (Product id for which main photo is downloaded.)</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Zwraca:</b></dt><dd>Objekt typu PictureInfo przechowujący informacje o zdjęciu (PictureInfo object storing information about photos.)</dd></dl>

<p>Definicja w linii <a class="el" href="_picture_d_a_o_8cs_source.html#l00266">266</a> pliku <a class="el" href="_picture_d_a_o_8cs_source.html">PictureDAO.cs</a>.</p>

</div>
</div>
<a class="anchor" id="ad2c8a5f352f5d40d4ec146d8dc46cfcf"></a><!-- doxytag: member="ShopDAO::PictureDAO::RemovePicture" ref="ad2c8a5f352f5d40d4ec146d8dc46cfcf" args="(int pictureId)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ShopDAO.PictureDAO.RemovePicture </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>pictureId</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Usuwa zdjęci o podanym id (Removes photos for the product with given id.). </p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pictureId</em>&nbsp;</td><td>Id zdjęcaia które ma zostać usunięte (Product id for which photos are to be removed.)</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Zwraca:</b></dt><dd>True jeśli operacja zakończona sukcesem (True is operation succedemd.)</dd></dl>

<p>Definicja w linii <a class="el" href="_picture_d_a_o_8cs_source.html#l00150">150</a> pliku <a class="el" href="_picture_d_a_o_8cs_source.html">PictureDAO.cs</a>.</p>

</div>
</div>
<a class="anchor" id="adc853cb174485307355afd09335f6587"></a><!-- doxytag: member="ShopDAO::PictureDAO::SavePicture" ref="adc853cb174485307355afd09335f6587" args="(ShopModel.PictureInfo picture)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ShopDAO.PictureDAO.SavePicture </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_shop_model_1_1_picture_info.html">ShopModel.PictureInfo</a>&nbsp;</td>
          <td class="paramname"> <em>picture</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Zapisuje plik zdjęcia w bazie danych (Saves photo file in the database.). </p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>picture</em>&nbsp;</td><td>Objekt PictureInfo przechowujący informacje o zdjęciu (PictureInfo object storing information about the picture.)</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Zwraca:</b></dt><dd>Zwraca 'true', jeśli operacja zakończona powodzeniem (Returns True when operation succeeded.)</dd></dl>

<p>Definicja w linii <a class="el" href="_picture_d_a_o_8cs_source.html#l00060">60</a> pliku <a class="el" href="_picture_d_a_o_8cs_source.html">PictureDAO.cs</a>.</p>

</div>
</div>
<a class="anchor" id="ae8948893e10cddafd21f83155665fb43"></a><!-- doxytag: member="ShopDAO::PictureDAO::SetAsMainPicture" ref="ae8948893e10cddafd21f83155665fb43" args="(int pictureId)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ShopDAO.PictureDAO.SetAsMainPicture </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>pictureId</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Ustaw zdjęcie o podanym id jako główne (Sets as main photo, picture with given id.). </p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pictureId</em>&nbsp;</td><td>Id zdjęcaia kótre ma zostać ustawione jako główne (Picture id for setting as main.)</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Zwraca:</b></dt><dd>True jeśli operacja zakończona sukcesem (True is operation succedemd.)</dd></dl>

<p>Definicja w linii <a class="el" href="_picture_d_a_o_8cs_source.html#l00182">182</a> pliku <a class="el" href="_picture_d_a_o_8cs_source.html">PictureDAO.cs</a>.</p>

</div>
</div>
<hr/>Dokumentacja dla tej klasy została wygenerowana z pliku:<ul>
<li>D:/CentrumXP/e-Commerce/eCommerceDev/SklepDAO/<a class="el" href="_picture_d_a_o_8cs_source.html">PictureDAO.cs</a></li>
</ul>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Klasy</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Przestrzenie nazw</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Pliki</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Funkcje</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>Zmienne</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&nbsp;</span>Wyliczenia</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&nbsp;</span>Właściwości</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&nbsp;</span>Zdarzenia</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr size="1"/><address style="text-align: right;"><small>Wygenerowano Mon Nov 9 06:08:22 2009 dla eCommerce programem&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>
